package com.jeeplus.modules.collect.entity;

import javax.validation.constraints.NotNull;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 我的收藏Entity
 * @author wangkai
 * @version 2017-12-16
 */
public class Collect extends DataEntity<Collect> {
	
	private static final long serialVersionUID = 1L;
	private String collectId;		// 收藏内容id
	private Integer collectType;		// 收藏内容类别（1：资料）
	
	public Collect() {
		super();
	}

	public Collect(String id){
		super(id);
	}

	@ExcelField(title="收藏内容id", align=2, sort=7)
	public String getCollectId() {
		return collectId;
	}

	public void setCollectId(String collectId) {
		this.collectId = collectId;
	}
	
	@NotNull(message="收藏内容类别（1：资料）不能为空")
	@ExcelField(title="收藏内容类别（1：资料）", align=2, sort=8)
	public Integer getCollectType() {
		return collectType;
	}

	public void setCollectType(Integer collectType) {
		this.collectType = collectType;
	}
	
}